package com.ruoyi.medication.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.List;

/**
 * 药物对象 medication
 * 
 * @author ruoyi
 * @date 2025-04-12
 */
public class Medication extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @Excel(name = "主键id")
    private Long id;

    /** 药物编号 */
    @Excel(name = "药物编号")
    private String number;

    /** 药物名称 */
    @Excel(name = "药物名称")
    private String name;

    /** 剂型，1 口服剂型，2 注射剂型，3 外用剂型，4 吸入剂型，5 专用剂型 */
    @Excel(name = "剂型，1 口服剂型，2 注射剂型，3 外用剂型，4 吸入剂型，5 专用剂型")
    private String dosageForm;

    /** 类别，1 抗生素类，2 抗病毒药物，3 抗真菌药物，4 抗肿瘤药物，5 镇痛药物，6 抗抑郁药物 */
    @Excel(name = "类别，1 抗生素类，2 抗病毒药物，3 抗真菌药物，4 抗肿瘤药物，5 镇痛药物，6 抗抑郁药物")
    private String type;

    /** 库存 */
    @Excel(name = "库存")
    private Long stock;

    /** 平均单价 */
    @Excel(name = "平均单价")
    private BigDecimal price;

    /** 剂量 */
    @Excel(name = "剂量")
    private String dosage;

    /** 药物库存信息 */
    private List<MedicationStock> medicationStockList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setNumber(String number) 
    {
        this.number = number;
    }

    public String getNumber() 
    {
        return number;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setDosageForm(String dosageForm) 
    {
        this.dosageForm = dosageForm;
    }

    public String getDosageForm() 
    {
        return dosageForm;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setStock(Long stock) 
    {
        this.stock = stock;
    }

    public Long getStock() 
    {
        return stock;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setDosage(String dosage) 
    {
        this.dosage = dosage;
    }

    public String getDosage() 
    {
        return dosage;
    }

    public List<MedicationStock> getMedicationStockList()
    {
        return medicationStockList;
    }

    public void setMedicationStockList(List<MedicationStock> medicationStockList)
    {
        this.medicationStockList = medicationStockList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("number", getNumber())
            .append("name", getName())
            .append("dosageForm", getDosageForm())
            .append("type", getType())
            .append("stock", getStock())
            .append("price", getPrice())
            .append("dosage", getDosage())
            .append("medicationStockList", getMedicationStockList())
            .toString();
    }
}
